/*  1:   */ package com.rinsi.app.zhcx.jczl.kjxx.tzry;
/*  2:   */ 
/*  3:   */ import com.rinsi.core.contoller.CoreSimpleController;
/*  4:   */ import com.rinsi.core.service.CoreSimpleService;
/*  5:   */ import com.rinsi.util.MapUtil;
/*  6:   */ import java.io.IOException;
/*  7:   */ import java.util.Map;
/*  8:   */ import javax.servlet.ServletOutputStream;
/*  9:   */ import javax.servlet.http.HttpServletRequest;
/* 10:   */ import javax.servlet.http.HttpServletResponse;
/* 11:   */ import org.springframework.beans.factory.annotation.Autowired;
/* 12:   */ import org.springframework.stereotype.Controller;
/* 13:   */ import org.springframework.ui.ModelMap;
/* 14:   */ import org.springframework.web.bind.annotation.RequestMapping;
/* 15:   */ 
/* 16:   */ @Controller
/* 17:   */ @RequestMapping({"/zhcx/jczl/kjxx/tzry"})
/* 18:   */ public class ZhcxTzryController
/* 19:   */   extends CoreSimpleController
/* 20:   */ {
/* 21:   */   @Autowired
/* 22:   */   private ZhcxTzryService zhcxTzryService;
/* 23:   */   
/* 24:   */   public CoreSimpleService servce()
/* 25:   */   {
/* 26:34 */     return this.zhcxTzryService;
/* 27:   */   }
/* 28:   */   
/* 29:   */   @RequestMapping({"/getImage"})
/* 30:   */   protected void getImage(ModelMap model, HttpServletRequest request, HttpServletResponse response)
/* 31:   */   {
/* 32:   */     try
/* 33:   */     {
/* 34:45 */       Map<String, Object> data = this.zhcxTzryService.item(model);
/* 35:   */       
/* 36:47 */       response.setContentType("image/JPEG;charset=UTF-8");
/* 37:   */       
/* 38:49 */       response.setContentType("application/x-msdownload;");
/* 39:   */       
/* 40:51 */       response.getOutputStream().write((byte[])MapUtil.getMapData(data, "data").get("TZZYRY_ZP"));
/* 41:   */     }
/* 42:   */     catch (IOException e)
/* 43:   */     {
/* 44:55 */       e.printStackTrace();
/* 45:   */     }
/* 46:   */   }
/* 47:   */ }


/* Location:           D:\Users\Desktop\shanxi\项目\sxazmis\WEB-INF\classes\
 * Qualified Name:     com.rinsi.app.zhcx.jczl.kjxx.tzry.ZhcxTzryController
 * JD-Core Version:    0.7.0.1
 */